import {info} from "@/views/company/WlhyCompany.api";
import {useMessage} from "@/hooks/web/useMessage";
import {reactive} from "vue";
export default function () {
  const {createMessage} = useMessage();


  const getCompanyInfo = async () => {
    const res = await info({});
    if(!res || res.authStatus != '2'){
      createMessage.info("当前公司未认证，请认证后操作")
      return res;
    }

    return res;
  }



  return { getCompanyInfo};

}
